<script>
    function logout() {
        $.get("user/logout",{},function(data){
            if(data.flag){
                location.href="index.html"
            }
        });
    }
</script>

<header id="header">
    <div class="top">
        <div class="top_inner">
            <div class="aside">
                <div class="logo">
                    <img src="images/logo.png">
                </div>
                <ul>
                    <li><a href="admin-report.html">实验报告</a></li>
                    <li><a href="admin-result.html">测试结果</a></li>
                </ul>
            </div>

            <div class="user">
                <button  onclick="javascript:logout();" class="btn btn-danger logout">登出</button>
            </div>
        </div>
    </div>
</header>